package fr.charlott.view;

import java.io.Serializable;

import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

public abstract class CharlottControler implements Serializable {

	private static final long serialVersionUID = 394228216047963871L;

	protected void cleanSession(String key) {
		ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
		externalContext.getSessionMap().remove(key);
	}

}
